const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  // 简化token 获取
  token: state => state.user.token,
  // 简化用户信息 获取
  userInfo: state => state.user.userInfo,
  // 是否登录的标记
  // userId存在 返回true 不存在 返回false
  // isLogin:state => state.user.userInfo.userId?true:false
  isLogin: state => !!state.user.userInfo.userId
}
export default getters
